//
//  SWContentDefine.swift
//  SinaWeibo
//
//  Created by wszyxc on 16/7/18.
//  Copyright © 2016年 wszyxc. All rights reserved.
//

import Foundation
import UIKit


let VERSION = "version"

let WelcomeNoti = "WelcomeNoti"

// 微博账号
let wbName = "981778952@qq.com"
let wbPasswd = "wzhwsl"

// 新浪微博相关信息
let APPKEY = "274585185"
let APPSECRET = "e2522b2b2a0b0d2894634d277aae3c25"     //"008fc6c8bcae365d315971586453645a"
// 回调页
let APPREDIRECT_URI = "http://www.baidu.com"


let ScreenWidth = UIScreen.mainScreen().bounds.size.width

let ScreenHeight = UIScreen.mainScreen().bounds.size.height

let ScreenBounds = UIScreen.mainScreen().bounds

//是否登录的标志
//var isLogin = SWUserAcountViewModel.sharedUserAcountViewModel.isLogin
//是否在执行转场动画的标志
var isAnima = false


let THEMECOLOR:UIColor = UIColor.orangeColor()

// RGB颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: alpha)
}

// 随机颜色
func RandomColor() ->UIColor{
    let r = random()%256
    let g = random()%256
    let b = random()%256
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}

